<template>
  <div class="carousel-view">
    <!-- <el-carousel trigger="click" height="300px">
      <el-carousel-item v-for="(item, index) in carouselList" :key="index" :class="[item.bg]">
      </el-carousel-item>
    </el-carousel> -->
    <el-image
      style="width: 100%; height: auto;"
      :src="bannerUrl"
      fit="fill"
      ></el-image>
  </div>
</template>
<script>
export default {
  name: 'Carousel',
  props: {
    arrayName: Array
  },
  data () {
    return {
      bannerUrl:  require('../../assets/img/scp_home_carousel.png'),
      carouselList: [
        {bg: 'scp_home_carousel'}
      ]
    }
  }
}
</script>
<style lang="scss">
.carousel-view {
  .el-carousel__item h3 {
    color: #475669;
    font-size: 14px;
    opacity: 0.75;
    line-height: 150px;
    margin: 0;
  }
  .el-carousel__item.scp_home_carousel{
    background: url('../../assets/img/scp_home_carousel.png') no-repeat;
    background-size: 100% 100%;
  }
  // .el-carousel__item:nth-child(2n) {
  //    background-color: #99a9bf;
  // }
  // .el-carousel__item:nth-child(2n+1) {
  //    background-color: #d3dce6;
  // }
}
</style>